/*
 * @Author: Cenven
 * @Date: 2021-05-31 18:27:44
 * @Description: 北京泓深教育发展有限公司
 * @Descripttion: 
 * @version: @Lastest
 * @LastEditTime: 2021-06-01 15:49:54
 * @CopyRight: 北京泓深教育发展有限公司
 */
import http from "~/utils/http";
export const getMyTaskList = data => {
  return http({
    url: "task/getUserTask",
    method: "post",
    data
  });
};
export const getPaperByTaskId = taskId => {
  return http({
    url: "taskPaper/getPaperByTask?taskId=" + taskId,
    method: "get",
  });
};
export const saveUserTask = data => {
  return http({
    url: "userTask/save",
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data;charset=UTF-8"
    },
    data
  });
};
// 获取直播地址
export const getVideoUrl = videoId => {
  return http({
    url: "video/front/custCourseAccess?id=" + videoId,
    method: "get",
  });
};
